﻿<script type="text/javascript" language="javascript">
  
      /* ************************ ************************ ************************
      JsConst - Localized text and const Js object.
      */

      var JsConst =   {
        /* LOCALIZED Numbers Decimal Separator - also used by user input validation NumbersOnly() */ 
        
        /* ARTICLE */
        LocalizedNumberDecimalSeparator : '@System.Threading.Thread.CurrentThread.CurrentCulture.NumberFormat.NumberDecimalSeparator ',
        JsNumberDecimalSeparator : ".",
        AllowedKeyValues : '0123456789',
        FloatRegExp : /^[0-9]+(\,([0-9]{0,2})?)?$/,
        IntRegExp : /^[0-9]+$/,
        QuantityValidationFailedVal : 'Nie poprawna ilość',
      
        
        /* BASKET */
        USER_BASKET_INFO_CONTROL_ID: '@Dinamico.Service.Const.Basket.USER_BASKET_INFO_CONTROL_ID',
        USER_BASKET_LIST: '@Dinamico.Service.Const.Basket.USER_BASKET_LIST',
        USER_BASKET_ARTICLE: '@Dinamico.Service.Const.Basket.USER_BASKET_ARTICLE',
        USER_BASKET_PRICE: '@Dinamico.Service.Const.Basket.USER_BASKET_PRICE',

        USER_BASKET_LIST_BIG: '@Dinamico.Service.Const.Basket.USER_BASKET_LIST_BIG',
        USER_BASKET_ARTICLE_BIG: '@Dinamico.Service.Const.Basket.USER_BASKET_ARTICLE_BIG',
        USER_BASKET_PRICE_BIG: '@Dinamico.Service.Const.Basket.USER_BASKET_PRICE_BIG',

        USER_BASKET_ORDER_ID: '@Dinamico.Service.Const.Basket.USER_BASKET_ORDER_ID',

        USER_BASKET_DROP_DOWN_ID: '@Dinamico.Service.Const.Basket.USER_BASKET_DROP_DOWN_ID',

        Captcha: '@Dinamico.Service.Const.Basket.Captcha',

        /* -------------------  URLs ---------------- */ 
        RemoveFromBasketUrl : '@RouteDataExtensions.GetUrlForRoute( Dinamico.Service.Const.Route.RemoveFromBasket)',
        UpdateBasketUrl: '@RouteDataExtensions.GetUrlForRoute(Dinamico.Service.Const.Route.Update_Basket)',
        ConfirmOrderUrl: '@RouteDataExtensions.GetUrlForRoute(Dinamico.Service.Const.Route.Basket_ConfirmOrder)',

        AddToBasketUrl : '@RouteDataExtensions.GetUrlForRoute(Dinamico.Service.Const.Route.Article_AddToBasket)',
        AddAllIntoBasketUrl : '@RouteDataExtensions.GetUrlForRoute(Dinamico.Service.Const.Route.Article_AddAllIntoBasket)',
        
        GetUserBasketJsonContentUrl : '@RouteDataExtensions.GetUrlForRoute(Dinamico.Service.Const.Route.Basket_GetUserBasketJsonContent)',            
        RemoveAllFromBasketUrl: '@RouteDataExtensions.GetUrlForRoute( Dinamico.Service.Const.Route.Remove_All_From_Basket)',

        Article_Category: '@RouteDataExtensions.GetUrlForRoute( Dinamico.Service.Const.Route.Article_Category)',
        Article_Category_Json: '@RouteDataExtensions.GetUrlForRoute( Dinamico.Service.Const.Route.Article_Category_Json)',
        Article_Version_Json: '@RouteDataExtensions.GetUrlForRoute( Dinamico.Service.Const.Route.Article_Version_Json)',
    

        /*------------------------ LOCALIZED ERROR MESSAGES ----------------------- */ 
        ErrorMsg_PriceList_Init_ArticlePriceEmpty:'BŁĄD: Pusta cena',
             
        ErrorMsg_PriceList_AddToCart_ArticlePriceNotFound:'BŁĄD: brak ceny',
               
        ErrorMsg_PriceList_AddToCart_ZeroQuantity : 'UWAGA: ILOŚĆ TOWARU 0. Proszę wpisz ilość .',
               
        ErrorMsg_PriceList_AddToCart_NoQuantity:'UWAGA: ILOŚĆ TOWARU 0. Proszę wpisz ilość .',        
            
        ErrorMsg_PriceList_CallBack_AddToCart_NotAnObject:'Resources.Scripts.JsConst.ErrorMsg_PriceList_CallBack_AddToCart_NotAnObject',
                
        ErrorMsg_PriceList_RememberArticle_ArticlePriceNotFound :'Resources.Scripts.JsConst.ErrorMsg_PriceList_RememberArticle_ArticlePriceNotFound',
              
        ErrorMsg_PriceList_CallBack_RememberArticle_NotAnObject:'Resources.Scripts.JsConst.ErrorMsg_PriceList_CallBack_RememberArticle_NotAnObject',
             
        ErrorMsg_PriceList_SendJSON_UrlEmpty :'Resources.Scripts.JsConst.ErrorMsg_PriceList_SendJSON_UrlEmpty',
                     
        ErrorMsg_PriceList_SendJSON_ArticleObjectNull :'Resources.Scripts.JsConst.ErrorMsg_PriceList_SendJSON_ArticleObjectNull',

        ErrorMsg_AddAllIntoBasket_SelectArticles:'Resources.Scripts.JsConst.ErrorMsg_AddAllIntoBasket_SelectArticles',


        /*, forget dummy */
        dummy : null
    }
    //</script>
